# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Russ Webber <russ@rw.id.au>
pkgname=py3-rospkg
_pkgname=rospkg
pkgver=1.2.8
pkgrel=0
pkgdesc="Standalone Python library for the ROS package system"
url="http://wiki.ros.org/rospkg"
arch="noarch"
license="BSD-3-Clause"
options="!check" # tests fail https://github.com/ros-infrastructure/rospkg/issues/202
depends="python3 py3-yaml py3-catkin-pkg py3-distro"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-mock"

source="$pkgname-$pkgver.tar.gz::https://github.com/ros-infrastructure/rospkg/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests --cover-package=rospkg --with-xunit test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c4f0c1992597aadf395effd4e6db65c20bf19501a19c569de57a2b9977d9ba794c3c68ba16b2b274ec865caffe6ec98b8fc0e88ad13ea3a9bc744e9ab6adb3a6  py3-rospkg-1.2.8.tar.gz"
